home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CDPD Public Domain Collection for CDTV 4
/
CDPD_IV.bin
/
e
/
mailinglists
/
amigae.0793july.archive
/
000089_crash!cup.port….com!Politikill_Tue, 27 Jul 93 16:15:28 PST.msg
< prev
next >
Wrap
Internet Message Format
|
1994-05-26
|
3KB
Received: by bkhouse.cts.com (V1.16/Amiga)
id AA00000; Tue, 27 Jul 93 16:15:28 PST
Received: from nova.unix.portal.com by crash.cts.com with smtp
(Smail3.1.28.1 #15) id m0oKuMP-00002NC; Tue, 27 Jul 93 12:06 PDT
Received: by nova.unix.portal.com (5.65b/4.1 1.383)
id AA01278; Tue, 27 Jul 93 12:10:47 -0700
Received: from hobo by portal.unix.portal.com (1.685)
id AA06068; Tue, 27 Jul 93 12:10:43 -0700
Received: by hobo.corp.portal.com (4.1/4.0.3 1.68)
id AA11560; Tue, 27 Jul 93 12:10:42 PDT
Return-Path: <Politikill@cup.portal.com>
Lines: 45
Date: Tue, 27 Jul 93 12:10:41 PDT
Message-Id: <9307271210.3.22837@cup.portal.com>
X-Origin: The Portal System (TM)
From: Politikill@cup.portal.com
To: AmigaE@bkhouse.cts.com
Subject: Re: $VER and Workbench Searchpaths
>My question was a little different, though. I'm trying to find out the search
>path for a program that ISN'T Installer. That is, I'm running a program from
>an icon (any ol' program), and I want that program to have the search path tha
t
>Workbench is using. How do I get that? I don't see any convenient way to
>handle it yet.
>
>Y'see, my program accepts an argument to execute a command from within it
>(specifically, my program is a fortune-cookie program, and I am trying to writ
e
>something that will pass a command such as 'more' through to it, so people can
>view the resulting fortune through more.. or muchmore, or a text editor, or
>whatever they want to do with it). When called from CLI, the spawned CLI
>process gets the same path that the current one has, so I don't have to search
>for it in any way.. AmigaDOS handles it for me. But, when called from an Icon
,
>my program doesn't have a search-path passed to it (even though Workbench
>itself has a search path within IT, through which it finds the programs it
>needs to run). I haven't found a way to get that searchpath.
>
>Does anyone know?
>
>- Trey
I was just looking at some source for a system monitor which iconifies
itslef, and I think I may have found what you are looking for. Under 2.0+ I
think the system sets up some sort of variable as PROGDIR: this is where the
program is. So if you do a lock on PROGDIR: and then look inside, I think you
will find everything. This should work. I know most programs I have that fail
because I run them through ARexx while not in the current directory (strange
way, I know) ask for PROGDIR: (Term, Spot....etc)
/ / /
/_/_/iZ
MODULE 'WiZkId'
PROC main()
wizkid.inetaddress:='Politkill@cup.portal.com'
wizkid.realname:='Jeffrey J Peden ]['
ENDPROC
*-- GammaTag Version 2.8 --*
*-- He's dead Jim. Pass the Ketchup!